package method_student;

public class MethodDemo01 {
//  需要返回
    public static int sum(int a, int b){
        int c = a + b;
        return c;
    }

    public static void main(String[] args) {
        int rs = sum(10,20);
        System.out.println(rs);
        System.out.println(sum(20, 30));
        sum(30, 60);
    }
}
